import string
char_digit=["zero","one","two","three","four","five","six","seven","eight","nine"]
char_digit1=["","one","two","three","four","five","six","seven","eight","nine"]
char_digit2=["","ten","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"]
char_digit3=["","","hundred","thousand"]

num = raw_input("Enter a number:")
len = len(num)

tempList=[]
for i in num:
    tempList.append(char_digit[int(i)])

print string.join(tempList,'-')

str=''
for i,ch in enumerate(num):
    pos = len-i
    if pos>=3:
        str = str + ' '+ char_digit1[int(ch)] + ' '+char_digit3[pos-1]
    elif pos==2:
        str = str + ' '+ char_digit2[int(ch)]
    else:
        str = str + ' ' + char_digit1[int(ch)]

print str




